# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=deepin-network-core
pkgver=2.0.15
pkgrel=3
pkgdesc='DDE network library and plugins'
arch=('loong64' 'x86_64')
url="https://github.com/linuxdeepin/dde-network-core"
license=('GPL3')
depends=(dtkcore dtkgui dtkwidget deepin-control-center glibc gcc-libs gsettings-qt
         networkmanager-qt5 qt5-base)
makedepends=(cmake gtest ninja qt5-tools)
groups=(deepin)
source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/dde-network-core/archive/$pkgver.tar.gz")
sha512sums=('7ec7d0c4bc9af01d2c4b14410e940097cf08e4f850c674edafcf57046a3cbcfc63dfa2bd3976c40d3b2fe3438cb1ee87dfed8aaa9bd3e30d4ce65c3d61d4662e')

build() {
  cd dde-network-core-$pkgver
  cmake -GNinja .
  ninja
}

package() {
  cd dde-network-core-$pkgver
  DESTDIR="$pkgdir" ninja install
}
